package cn.sinonet.mb.message;

import org.limp.basework.AbstractSimpleBean;

import java.util.List;


/**
 * 报文模板接口定义
 * @author mido
 *
 */
public class MessageTemplate extends AbstractSimpleBean {
    private String id;
    private String name;
    private String typeId;
    private String typeName;
    private String desc;
    private List prsHandlers;
    private List requestItems;
    private List responseItems;

    /**
       * 主键ID
       * @return String
       */
    public String getId() {
        return this.id;
    }

    /**
     * 名称
     * @return String
     */
    public String getName() {
        return this.name;
    }

    /**
     * 类型id
     * @return String
     */
    public String getTypeId() {
        return this.typeId;
    }

    /**
     * 类型名称
     * @return String
     */
    public String getTypeName() {
        return this.typeName;
    }

    /**
     * 描述说明
     * @return String
     */
    public String getDesc() {
        return this.desc;
    }

    /**
     * 业务过程控制器
     * <p>
     *   List{handlerName1, handlerName2...}
     * </p>
     * @return List
     */
    public List getProcessHandlers() {
        return this.prsHandlers;
    }

    /**
     * 获取请求字段项
     * <p>
     * List{MessageRequestItem, MessageRequestItem...}
     * </p>
     * @return List
     */
    public List<MessageRequestItem> getRequestItems() {
        return this.requestItems;
    }

    /**
     * 获取响应字段项
     * <p>
     * List{MessageResponseItem, MessageResponseItem...}
     * </p>
     * @return List
     */
    public List<MessageResponseItem> getResponseItems() {
        return this.responseItems;
    }
}
